# 正向递增
s = 'helloworld'
for i in range(1,len(s)):
    print(i,s[i],end='\t\t')
print('\n----------------------------------')

# 反向递减
for i in range(-10,0):
    print(i,s[i],end='\t\t')